package day14_junit_reflect_annotation_proxy.com.itheima.d2_reflect;

import day14_junit_reflect_annotation_proxy.com.itheima.d1_junit.StringUtil;

public class Cat {
    public static int a;
    public static final String COUNTRY = "中国";
    private String name;
    private int age;
    public Cat(){
        System.out.println("无参构造方法");
    }
    private Cat(String name, int age){
        System.out.println("有参构造方法");
        this.name = name;
        this.age = age;
    }
    private void run(){
        System.out.println("小猫会跑");
    }
    private void eat(){
        System.out.println("小猫会吃");
    }
    private void eat(String name){
        System.out.println("小猫吃" + name);
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
